package com.yyl.rbacs.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @BelongsProject: rbacs
 * @BelongsPackage: com.yyl.rbacs.sys.entity
 * @Author: YuanSir
 * @CreateTime: 2022-11-02  15:30
 * @Description:
 * @Version: 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysLog implements Serializable {
    /**
     * 增删改日志表
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * 自增id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 角色id
     */
    private Long userId;
    
    /**
     * 角色名
     */
    private String userName;
    
    /**
     * 操作时间
     */
    private Date operationTime;
    
    /**
     * 增删改名
     */
    private String operationName;
    
    /**
     * 增删改数据
     */
    private String oprationContent;
    
    public SysLog(Long userId, String userName, Date operationTime, String operationName, String oprationContent) {
        this.userId = userId;
        this.userName = userName;
        this.operationTime = operationTime;
        this.operationName = operationName;
        this.oprationContent = oprationContent;
    }
}
